/**
 * 
 */
package cn.kuaipai.mail.model;

import java.io.Serializable;
import java.util.Date;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

/**
 * @author zy
 */
public class MailInfo implements Serializable {
	
	private static final long serialVersionUID = 2352631962025092828L;
	
	/**
	 * 邮件主题
	 */
	private String subject ;
	/**
	 * 发件人
	 */
	private String from ;
	/**
	 * 收件人
	 */
	private String [] tos ;
	/**
	 * 抄送人
	 */
	private String [] ccs ;
	/**
	 * 密送人
	 */
	private String [] bccs ;
	/**
	 * 发送时间
	 */
	private Date date ;
	/**
	 * 正文内容
	 * 支持HTML标签
	 */
	private String content ;
	/**
	 * 指定邮件优先级 1:紧急 3:普通 5:缓慢
	 * 默认为3
	 */
	private int priority = 3 ;
	
	
	public MailInfo(){
		super();
	}
	public MailInfo(String subject,String from,String [] tos,String content){
		this.subject = subject ;
		this.from = from ;
		this.tos = tos ;
		this.content = content ;
		this.date = new Date();
		this.priority = 3 ;
	}
	public String getSubject() {
		return subject;
	}
	public void setSubject(String subject) {
		this.subject = subject;
	}
	public String getFrom() {
		return from;
	}
	public void setFrom(String from) {
		this.from = from;
	}
	public String[] getTos() {
		return tos;
	}
	public void setTos(String[] tos) {
		this.tos = tos;
	}
	public String[] getCcs() {
		return ccs;
	}
	public void setCcs(String[] ccs) {
		this.ccs = ccs;
	}
	public String[] getBccs() {
		return bccs;
	}
	public void setBccs(String[] bccs) {
		this.bccs = bccs;
	}
	public Date getDate() {
		return date;
	}
	public void setDate(Date date) {
		this.date = date;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public int getPriority() {
		return priority;
	}
	public void setPriority(int priority) {
		this.priority = priority;
	}
	
	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);
	}

}
